package com.akxy.pt.tsdb.domain.stress;

import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import lombok.Data;

import java.time.Instant;
import java.util.Date;

/**
 * 应力历史表数据类
 *
 * @author wangp
 */
@Data
@Measurement(name = "stress")
public class StressDataInfo {
    @Column(name = "mp_id", tag = true)
    private String mpId;

    @Column(name = "area_id", tag = true)
    private String areaId;

    private Date acquisitionTime;

    @Column(name = "value")
    private Double pValue;
    @Column(name = "all_inc_rate")
    private Double allIncRate;
    @Column(name = "hour_inc")
    private Double hourInc;
    @Column(name = "day_inc")
    private Double dayInc;

    @Column(name = "time", timestamp = true)
    private Instant time;

}